//
//  TWWiFiTransmissionTableViewCell.m
//  TWWiFiTransmission_Example
//
//  Created by Tilt on 2021/2/1.
//  Copyright © 2021 wangxufeng092@163.com. All rights reserved.
//

#import "TWWiFiTransmissionTableViewCell.h"
#import <Masonry/Masonry.h>

@interface TWWiFiTransmissionTableViewCell ()

@property (nonatomic, strong) UILabel *titleLbl;

@end

@implementation TWWiFiTransmissionTableViewCell


+ (NSString *)cellReuseIdentifier {
    return @"iFiTransmissionTableViewReuseCell";
}

- (void)setTitle:(NSString *)title {
    _title = title;
    self.titleLbl.text = title;
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    [self.contentView addSubview:self.titleLbl];
    [self.titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(15);
        make.centerY.equalTo(self.contentView);
    }];
}

- (UILabel *)titleLbl {
    if (!_titleLbl) {
        _titleLbl = [[UILabel alloc] init];
        _titleLbl.textColor = [UIColor grayColor];
        _titleLbl.font = [UIFont systemFontOfSize:15];
    }
    return _titleLbl;
}
@end
